package com.zhoug.zmui3.task;

import com.zhoug.common3.utils.file.IFile;

import java.util.List;

import androidx.annotation.DrawableRes;

/**
 * @Author: zhoug
 * @Date: 2024-07-17
 * @Description:
 */
public class TaskTimeFlowData {
    private String time;//任务时间
    private String name;//任务名称
    private String extrasName;//任务扩展按钮 名称
    private @DrawableRes int extrasIcon;//任务扩展图标
    private boolean extrasEnable=false;
    private boolean complete;//是否完成
    private List<LineData> lines;
    private Object object;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getExtrasName() {
        return extrasName;
    }

    public void setExtrasName(String extrasName) {
        this.extrasName = extrasName;
    }

    public int getExtrasIcon() {
        return extrasIcon;
    }

    public void setExtrasIcon(int extrasIcon) {
        this.extrasIcon = extrasIcon;
    }

    public boolean isExtrasEnable() {
        return extrasEnable;
    }

    public void setExtrasEnable(boolean extrasEnable) {
        this.extrasEnable = extrasEnable;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public boolean isComplete() {
        return complete;
    }

    public void setComplete(boolean complete) {
        this.complete = complete;
    }

    public List<LineData> getLines() {
        return lines;
    }

    public void setLines(List<LineData> lines) {
        this.lines = lines;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public static class LineData {
        private String name;
        private Object object;

        public LineData() {
        }

        public LineData(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Object getObject() {
            return object;
        }

        public void setObject(Object object) {
            this.object = object;
        }
    }

    public static class TextLineData extends LineData{
        private String text;

        public TextLineData() {
        }

        public TextLineData(String name, String text) {
            super(name);
            this.text = text;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public static class FileLineData extends LineData{
        private List<IFile> files;

        public FileLineData() {
        }

        public FileLineData(String name, List<IFile> files) {
            super(name);
            this.files = files;
        }

        public List<IFile> getFiles() {
            return files;
        }

        public void setFiles(List<IFile> files) {
            this.files = files;
        }
    }



}
